<?php
/* @var $this EstablishmentsController */
/* @var $model Establishments */

$this->breadcrumbs=array(
	'Establishments'=>array('index'),
	'Create',
);

$this->menu=array(
	array('label'=>'List Establishments', 'url'=>array('index')),
	array('label'=>'Manage Establishments', 'url'=>array('admin')),
);
?>

<h1>Create Establishments</h1>

<div class="form">

<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id'=>'horizontalForm',
    'type'=>'horizontal', 
)); ?>

<?php $this->renderPartial('_form', array('model'=>$model,'form'=>$form,'type'=>$type)); ?>

<legend>General Information</legend>

<?php $this->renderPartial('_generalinformation', array('model'=>$model->generalinformation,'form'=>$form,'type'=>$type)); ?>

<legend>Building Construction</legend>

<?php if(isset($model->buildingconstruction))
			$this->renderPartial('_buildingconstruction', array('model'=>$model->buildingconstruction,'form'=>$form,'type'=>$type)); 
?>

<legend>Sectional Occupancy</legend>
<?php if(isset($model->sectionaloccupancy))
			$this->renderPartial('_sectional', array('model'=>$model->sectionaloccupancy,'form'=>$form)); 
?>

<legend>Exit Details</legend>
<?php if(isset($model->exitdetail))
			$this->renderPartial('_exitdetails', array('model'=>$model->exitdetail,'form'=>$form,'type'=>$type)); 
?>

<legend>Means of Egress</legend>
<?php if(isset($model->meansofegress))
			$this->renderPartial('_meansofegress', array('model'=>$model->meansofegress,'form'=>$form,'type'=>$type)); 
?>










<div class="form-actions">
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'primary', 'label'=>'Submit')); ?>
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'Reset')); ?>
</div>

<?php $this->endWidget(); ?>
</div>